package com.jumi.microservice.enumerate;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author Dirk
 * @Date 2020-08-13 16:39
 */
public enum OrderTypeEnum implements AbstractEnum<Byte> {

    /**
     * 订单类型 1-用户订单 2-补发订单 3-预售订单
     */
    USER_CREATE(1, "用户订单"),
    @Deprecated
    REISSUE_CREATE(2, "补发订单"),
    PRE_SALE_CREATE(3, "预售订单");


    private Byte code;

    private String message;

    OrderTypeEnum(Integer code, String message) {
        this.code = code.byteValue();
        this.message = message;
    }

    @Override
    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
